package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 优惠券有效期类型
 * @author panbo
 * @since 2024/8/2
 */
@Getter
@AllArgsConstructor
@Dict("优惠券有效期类型")
public enum CouponLimitTypeEnum implements DictEnum<String> {
    UNLIMITED("UNLIMITED", "无限制"),
    CLASS_LIMIT("CLASS_LIMIT", "指定班级"),
    CATEGORY_LIMIT("CATEGORY_LIMIT", "指定班型");


    @EnumValue
    @JsonValue
    private final String value;
    private final String label;
}

